home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / wiredsprites / application files / comresource.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-10-06  |  3.1 KB  |  89 lines

  1. //////////
  2. //
  3. //    File:        ComResource.h
  4. //
  5. //    Contains:    Resource definitions for the QuickTime sample code framework. 
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //       
  13. //       <1>         11/08/99    rtm        first file
  14. //
  15. //////////
  16.  
  17. //////////
  18. //
  19. // menu IDs
  20. //
  21. // Windows accesses menu items with a single "menu item identifier", which is of type UINT.
  22. // Macintosh accesses menu items with both a menu ID and a menu item index. To be able to 
  23. // access menu items in a cross-platform manner, we will map the pair of numbers associated
  24. // with a Macintosh menu item into a single "menu item identifier", using the MENU_IDENTIFIER
  25. // macro defined in the file ComFramework.h. This means that the menu item identifiers that
  26. // we use in our Windows code depend on the values we use for the menu ID and menu item indices
  27. // in the Macintosh resource file.
  28. //
  29. //////////
  30.  
  31. // resource IDs for Macintosh menus
  32. #define kMenuBarResID                   128
  33. #define kAppleMenuResID                 128
  34. #define kFileMenuResID                    129
  35. #define kEditMenuResID                    130
  36. #define kTestMenuResID                    131
  37.  
  38. // IDs for Apple menu items
  39. #define kAboutMenuItem                    1
  40.  
  41. // IDs for File and Edit menus and menu items
  42. #define IDS_FILEMENU                    33024    // ((kFileMenuResID<<8)+(0))
  43. #define IDM_FILENEW                        33025
  44. #define IDM_FILEOPEN                    33026
  45. #define IDM_FILECLOSE                   33027
  46. #define IDM_FILESAVE                     33028
  47. #define IDM_FILESAVEAS                     33029
  48. #define IDM_EXIT                        33031
  49.  
  50. #define IDS_EDITMENU                    33280    // ((kEditMenuResID<<8)+(0))
  51. #define IDM_EDITUNDO                    33281
  52. #define IDM_EDITCUT                     33283
  53. #define IDM_EDITCOPY                    33284
  54. #define IDM_EDITPASTE                   33285
  55. #define IDM_EDITCLEAR                   33286
  56. #define IDM_EDITSELECTALL               33288
  57. #define IDM_EDITSELECTNONE                33289
  58. #define IDM_PREFERENCES                    33291
  59.  
  60. #define IDS_TESTMENU                      33536    // ((kTestMenuResID<<8)+(0))
  61. #define IDM_MAKE_SPRITE_MOVIE           33537    // ((kTestMenuResID<<8)+(1))
  62.  
  63. // IDs for Window menu and menu items (Windows-only)
  64. #define IDS_WINDOWMENU                  1300
  65. #define IDM_WINDOWTILE                  1301
  66. #define IDM_WINDOWCASCADE               1302
  67. #define IDM_WINDOWCLOSEALL              1303
  68. #define IDM_WINDOWICONS                 1304
  69. #define IDM_WINDOWCHILD                 1310
  70.  
  71. // Windows-only resource IDs
  72. #define IDS_HELPMENU                    1400
  73. #define IDM_ABOUT                       1401
  74. #define IDC_STATIC                      -1
  75.  
  76. #define IDS_APPNAME                     1
  77. #define IDS_DESCRIPTION                 2
  78. #define WINDOWMENU                      3
  79. #define IDS_FILTERSTRING                3
  80. #define IDS_SAVEONCLOSE                  2000
  81. #define IDS_SAVEONQUIT                  2001
  82. #define IDI_APPICON                     101
  83. #define IDI_CHILDICON                   102
  84. #define IDD_ABOUT                       103
  85.  
  86.  
  87.  
  88.  
  89.